-- GENERATED SPELL FOR [Besseleth] --


function spell0_11921(pUnit, Event) --@Venom Sting,n/a--
pUnit:FullCastSpellOnTarget(5416,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_11921', 45000, 1)
end

function spell1_11921(pUnit, Event) --@Web,n/a--
pUnit:FullCastSpellOnTarget(745,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_11921', 5255, 1)
end

function Sorts_11921(pUnit, Event)
local choix_sorts_11921 = math.random(0, 1)
if choix_sorts_11921 == 0 then
pUnit:RegisterEvent('spell0_11921', 1, 1)
end
if choix_sorts_11921 == 1 then
pUnit:RegisterEvent('spell1_11921', 1, 1)
end
end

function mob11921_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_11921', math.random(1500, 3000), 1)
end

function mob11921_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob11921_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob11921_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(11921, 1, 'mob11921_Action')
RegisterUnitEvent(11921, 2, 'mob11921_Leave')
RegisterUnitEvent(11921, 3, 'mob11921_Kill')
RegisterUnitEvent(11921, 4, 'mob11921_Die')
